import os
# 5个人的名字
names = ["张一", "张二", "张三", "张四", "张五"]
# 创建文件夹
os.mkdir("files")
# 创建每个人的文件夹和文件
for name in names:
    # 创建文件夹
    os.mkdir(os.path.join("files", name))
    for i in range(1, 5):
        # 创建文件名
        filename = f"{name}_day{i}.py"
        # 创建文件并写入内容
        with open(os.path.join("files", name, filename), "w") as f:
            f.write(f"Hello {name}, this is day {i}.")
